<div id="userPage">
<h2>Edit My Prfofile</h2>
<br/>
<form action = "editprofile.php" method = "post">
	<table border = "0">
		<tr class="field">
			<td>First name:</td>
			<td><input type = "text" name = "fname" value = "{$fname}"></td>
			<td>
				{if $errorfname}
					{$errorfname}
				{/if}
			</td>
		</tr>
		
		<tr class="field">
			<td>Last name:</td>
			<td><input type = "text" name = "lname" value = "{$lname}"></td>
			<td>
				{if $errorlname}
					{$errorlname}
				{/if}
			</td>
		</tr>
		
		<tr class="field">
			<td>Email:</td>
			<td><input type = "text" name = "email" value = "{$email}"></td>
			<td>
				{if $erroremail}
					{$erroremail}
				{/if}
			</td>
		</tr>
		
		<tr class="field">
			<td>Role:</td>
			<td>{$role}</td>
		</tr>
		
		<tr class="field">
			<td>New Password:</td>
			<td><input type = "password" name = "newpassword"></td>
		</tr>
		
		<tr class="field">
			<td>To change password, type old one:</td>
			<td><input type = "password" name = "password"></td>
			<td>
				{if $errorpass}
					{$errorpass}
				{/if}
			</td>
		</tr>
		
		<tr class="field">
			<td></td>
			<td>
				<input type = "submit" name = "submit" value = "Cancel">
				<input type = "submit" name = "submit" value = "Save Info">
			</td>
		</tr>
		
	</table>
</form>
</div>